package com.qk.config;


import com.qk.interceptor.DemoInterceptor;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
public class Webconfig implements WebMvcConfigurer {

//    @Autowired
    private DemoInterceptor demoInterceptor;

    @Override
    public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) {
        registry.addInterceptor(new DemoInterceptor()).addPathPatterns("/**");
    }
}
